home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / tcprogud.sit / TC Prog Guide / card_24002.txt < prev    next >
Text File  |  1991-02-27  |  1KB  |  24 lines

  1. -- card: 24002 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 4755
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 4
  9. ----- text -----
  10. CHARACTERS
  11.  
  12. Character variables are declared using the 'char' specifier, and may take on any single value in the machine's CHARACTER SET.  An integer representation is used corresponding to this character set.  Character constants may be identified by either the appropriate integer or by the character enclosed in single quotes:
  13.  
  14.     char    input1, input2;
  15.     input1 = 'a';
  16.     input2 = 97;
  17.  
  18. (In machines using the ASCII character set, both input1 and input2 will represent the same value.  In general, the first assignment is preferable since it is clearer and not machine-dependent.)
  19.  
  20. Non-printable characters in the character set are represented by an escape sequence:  a backslash followed by a code character.  For example, the carriage return character is represented by '\n'.
  21.  
  22. -- part contents for background part 7
  23. ----- text -----
  24. 55